.PHONY: *

all:
	@ echo "Possible targets: \ngausslegendre-seq \ngausslegendre-par \ngausslegendre-par2 \nborwein-seq \nmontecarlo-seq \nmontecarlo-par \nblackscholes-seq \nblackscholes-par"

gausslegendre-seq:
	gcc -o gausslegendre-seq gausslegendre.c -lm

gausslegendre-par:
	gcc -o gausslegendre-par gausslegendre-thread.c -lm -pthread

gausslegendre-par2:
	gcc -o gausslegendre-par2 gausslegendre-thread2.c -lm -pthread

borwein-seq:
	gcc -o borwein-seq borwein.c -lm

montecarlo-seq:
	gcc -o montecarlo-seq montecarlo.c

montecarlo-par:
	gcc -o montecarlo-par montecarlo-thread.c -pthread

blackscholes-seq:
	gcc -o blackscholes-seq blackscholes.c -lm

blackscholes-par:
	gcc -o blackscholes-par blackscholes-thread.c -lm -pthread

clean:
	rm -f gausslegendre-seq gausslegendre-par borwein-seq montecarlo-seq montecarlo-par blackscholes-seq blackscholes-par
